# 显示所有变量
read -p "Enter a bash script path: " p
bash -x $p

# 检查语法
read -p "Enter a bash script path: " p
bash -n $p